package vashion.azeroth.core.item.dao;

import org.apache.ibatis.annotations.Param;
import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.dao.DaoRepository;
import vashion.azeroth.core.item.pojo.PropertyValueDO;

import java.util.List;

/**
 * Created by tingting on 15/9/1.
 * 属性dao
 */
@DaoRepository
public interface PropertyValueDao extends BaseDao<PropertyValueDO> {

    List<PropertyValueDO> getFromMetaIdList(@Param("propertyIdList") List<Long> propertyIdList,
                                            @Param("start") int start,
                                            @Param("pageSize") int pageSize);
    
    List<PropertyValueDO> getFromMetaId(@Param("propertyMetaId") Long propertyMetaId);

    int countValueList(@Param("propertyIdList") List<Long> propertyIdList);

    List<PropertyValueDO> getValueList(List<Long> idList);

    PropertyValueDO findByValue(PropertyValueDO value);
    
    boolean freezeOrResume(PropertyValueDO value);
}
